//座位数据库模型
const mongoose = require("mongoose");

const { Schema, model } = mongoose;

const SeatsSchema = new  Schema ({ 
  //所属教室id
  roomId: { type: String, require: true }, 
  //当前状态  1->可用  2->不可用  3->无座
  status: { type: Number, default: 1},
  //座位位置
  place: { type: String, require: true},
  //座位标识
  seatKey: { type: String, require: true},
});

const Seats = model("Seats", SeatsSchema);

module.exports = Seats;